import * as PIXI from 'pixi.js'

export default async function (app: PIXI.Application) {
  // 背景层
  const bundle = await PIXI.Assets.loadBundle('cardBook')
  const bgTexture = new PIXI.Sprite(bundle.HallBG_Back)
  bgTexture.anchor.set(0.5)
  bgTexture.position.set(app.screen.width / 2, app.screen.height / 2)
  bgTexture.scale.set(app.canvas.width / bgTexture.width)
  app.stage.addChild(bgTexture)
}
